home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / mgr.zoo / mgrdif2.zoo / diffs next >
Encoding:
Text File  |  1991-03-22  |  21.8 KB  |  700 lines

  1. *** ckmgrterm.c    Thu Mar 21 10:46:46 1991
  2. --- ../ckmgrterm.c    Fri Mar 22 09:29:14 1991
  3. ***************
  4. *** 5,14 ****
  5.    *       on copies, and credit should be given to Bellcore where it is due.
  6.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.    */
  8. ! /*    $Header: ckmgrterm.c,v 4.1 88/06/21 13:40:34 bianchi Exp $
  9. !     $Source: /tmp/mgrsrc/lib/RCS/ckmgrterm.c,v $
  10.   */
  11. ! static char    RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/ckmgrterm.c,v $$Revision: 4.1 $";
  12.   
  13.   #include    <stdio.h>
  14.   
  15. --- 5,14 ----
  16.    *       on copies, and credit should be given to Bellcore where it is due.
  17.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  18.    */
  19. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/ckmgrterm.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  20. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/ckmgrterm.c,v $
  21.   */
  22. ! static char    RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/ckmgrterm.c,v $$Revision: 1.1 $";
  23.   
  24.   #include    <stdio.h>
  25.   
  26. *** dump.h    Thu Mar 21 10:46:46 1991
  27. --- ../dump.h    Fri Mar 22 09:29:14 1991
  28. ***************
  29. *** 5,14 ****
  30.    *       on copies, and credit should be given to Bellcore where it is due.
  31.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  32.    */
  33. ! /*    $Header: dump.h,v 4.2 88/07/20 15:16:24 sau Exp $
  34. !     $Source: /tmp/mgrsrc/lib/RCS/dump.h,v $
  35.   */
  36. ! static char    h_dump_[] = "$Source: /tmp/mgrsrc/lib/RCS/dump.h,v $$Revision: 4.2 $";
  37.   /* format for saved bitmaps */
  38.   
  39.   #define B_HSIZE        (sizeof(struct b_header))
  40. --- 5,14 ----
  41.    *       on copies, and credit should be given to Bellcore where it is due.
  42.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  43.    */
  44. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/dump.h,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  45. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/dump.h,v $
  46.   */
  47. ! static char    h_dump_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/dump.h,v $$Revision: 1.1 $";
  48.   /* format for saved bitmaps */
  49.   
  50.   #define B_HSIZE        (sizeof(struct b_header))
  51. *** restart.h    Thu Mar 21 10:46:46 1991
  52. --- ../restart.h    Fri Mar 22 09:29:16 1991
  53. ***************
  54. *** 5,14 ****
  55.    *       on copies, and credit should be given to Bellcore where it is due.
  56.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  57.    */
  58. ! /*    $Header: restart.h,v 4.1 88/06/21 13:40:38 bianchi Exp $
  59. !     $Source: /tmp/mgrsrc/lib/RCS/restart.h,v $
  60.   */
  61. ! static char    h_restart_[] = "$Source: /tmp/mgrsrc/lib/RCS/restart.h,v $$Revision: 4.1 $";
  62.   
  63.   /* stuff for restarting upon reshape/ redraw */
  64.   
  65. --- 5,14 ----
  66.    *       on copies, and credit should be given to Bellcore where it is due.
  67.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  68.    */
  69. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/restart.h,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  70. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/restart.h,v $
  71.   */
  72. ! static char    h_restart_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/restart.h,v $$Revision: 1.1 $";
  73.   
  74.   /* stuff for restarting upon reshape/ redraw */
  75.   
  76. ***************
  77. *** 22,29 ****
  78. --- 22,34 ----
  79.   #include <signal.h>
  80.   #endif
  81.   
  82. + #if __STDC__
  83. + void _Catch (void);
  84. + void _Clean (void);
  85. + #else
  86.   extern int _Catch(), _Clean();
  87.   extern jmp_buf _env;
  88. + #endif
  89.   
  90.   #ifdef QUIT_CHAR
  91.   static char *_quit = QUIT_CHAR;
  92. *** scribe.c    Thu Mar 21 10:46:47 1991
  93. --- ../scribe.c    Fri Mar 22 09:29:17 1991
  94. ***************
  95. *** 5,14 ****
  96.    *       on copies, and credit should be given to Bellcore where it is due.
  97.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  98.    */
  99. ! /*    $Header: scribe.c,v 4.2 88/06/22 09:05:15 sau Exp $
  100. !     $Source: /tmp/mgrsrc/lib/RCS/scribe.c,v $
  101.   */
  102. ! static char    RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/scribe.c,v $$Revision: 4.2 $";
  103.   
  104.   /* These characters were adapted from the Hershey font collection.
  105.    *
  106. --- 5,14 ----
  107.    *       on copies, and credit should be given to Bellcore where it is due.
  108.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  109.    */
  110. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/scribe.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  111. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/scribe.c,v $
  112.   */
  113. ! static char    RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/scribe.c,v $$Revision: 1.1 $";
  114.   
  115.   /* These characters were adapted from the Hershey font collection.
  116.    *
  117. ***************
  118. *** 18,24 ****
  119.   
  120.   scribe( font, ch, min, max, npts, pts)
  121.       int font, *npts;
  122. !     char ch;
  123.       short    *min, *max, *pts;
  124.   #    define char_per_font 96
  125.   {
  126. --- 18,24 ----
  127.   
  128.   scribe( font, ch, min, max, npts, pts)
  129.       int font, *npts;
  130. !     int ch;
  131.       short    *min, *max, *pts;
  132.   #    define char_per_font 96
  133.   {
  134. *** sfont.c    Thu Mar 21 10:46:47 1991
  135. --- ../sfont.c    Fri Mar 22 09:29:18 1991
  136. ***************
  137. *** 5,14 ****
  138.    *       on copies, and credit should be given to Bellcore where it is due.
  139.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  140.    */
  141. ! /*    $Header: sfont.c,v 4.2 88/06/22 09:12:40 sau Exp $
  142. !     $Source: /tmp/mgrsrc/lib/RCS/sfont.c,v $
  143.   */
  144. ! static char    RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/sfont.c,v $$Revision: 4.2 $";
  145.   
  146.   /* These characters were adapted from the Hershey font collection.
  147.    *
  148. --- 5,14 ----
  149.    *       on copies, and credit should be given to Bellcore where it is due.
  150.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  151.    */
  152. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sfont.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  153. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sfont.c,v $
  154.   */
  155. ! static char    RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sfont.c,v $$Revision: 1.1 $";
  156.   
  157.   /* These characters were adapted from the Hershey font collection.
  158.    *
  159. ***************
  160. *** 19,25 ****
  161.   /*---------------------------------------*/
  162.   sfont( font, ch, min, max, npts, pts)
  163.       int font, *npts;
  164. !     char ch;
  165.       short    *min, *max, *pts;
  166.   #    define char_per_font 96
  167.   {
  168. --- 19,25 ----
  169.   /*---------------------------------------*/
  170.   sfont( font, ch, min, max, npts, pts)
  171.       int font, *npts;
  172. !     int ch;
  173.       short    *min, *max, *pts;
  174.   #    define char_per_font 96
  175.   {
  176. *** sin.c    Thu Mar 21 10:46:47 1991
  177. --- ../sin.c    Fri Mar 22 09:29:18 1991
  178. ***************
  179. *** 5,14 ****
  180.    *       on copies, and credit should be given to Bellcore where it is due.
  181.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  182.    */
  183. ! /*    $Header: sin.c,v 4.1 88/06/21 13:40:58 bianchi Exp $
  184. !     $Source: /tmp/mgrsrc/lib/RCS/sin.c,v $
  185.   */
  186. ! static char    RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/sin.c,v $$Revision: 4.1 $";
  187.   
  188.   /*    sine and cosine routines
  189.    *    input:    degrees (integer) 
  190. --- 5,14 ----
  191.    *       on copies, and credit should be given to Bellcore where it is due.
  192.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  193.    */
  194. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sin.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  195. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sin.c,v $
  196.   */
  197. ! static char    RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/sin.c,v $$Revision: 1.1 $";
  198.   
  199.   /*    sine and cosine routines
  200.    *    input:    degrees (integer) 
  201. ***************
  202. *** 17,23 ****
  203.   
  204.   /*    sin table 0-90 degrees * 1024 */
  205.   
  206. ! int sintab[] = {
  207.       0, 18, 36, 54, 71, 89, 107, 125, 143, 160,
  208.       178, 195, 213, 230, 248, 265, 282, 299, 316, 333,
  209.       350, 367, 384, 400, 416, 433, 449, 465, 481, 496,
  210. --- 17,23 ----
  211.   
  212.   /*    sin table 0-90 degrees * 1024 */
  213.   
  214. ! static short sintab[] = {
  215.       0, 18, 36, 54, 71, 89, 107, 125, 143, 160,
  216.       178, 195, 213, 230, 248, 265, 282, 299, 316, 333,
  217.       350, 367, 384, 400, 416, 433, 449, 465, 481, 496,
  218. *** term.c    Thu Mar 21 10:51:06 1991
  219. --- ../term.c    Fri Mar 22 09:31:52 1991
  220. ***************
  221. *** 5,14 ****
  222.    *       on copies, and credit should be given to Bellcore where it is due.
  223.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  224.    */
  225. ! /*    $Header: term.c,v 4.3 88/07/01 09:33:49 bianchi Exp $
  226. !     $Source: /tmp/mgrsrc/lib/RCS/term.c,v $
  227.   */
  228. ! static char    RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/term.c,v $$Revision: 4.3 $";
  229.   
  230.   /* routines for writing to mgr terminal emulator */
  231.   
  232. --- 5,14 ----
  233.    *       on copies, and credit should be given to Bellcore where it is due.
  234.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  235.    */
  236. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  237. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.c,v $
  238.   */
  239. ! static char    RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.c,v $$Revision: 1.1 $";
  240.   
  241.   /* routines for writing to mgr terminal emulator */
  242.   
  243. ***************
  244. *** 416,422 ****
  245.      len = 2 * count + 1;
  246.   
  247.      for (i=0;i<count;i++)
  248. !        len += strlen(text[i].value) + strlen(text[i].action);
  249.      
  250.      fprintf(m_termout,"%c%d,%d%c%c",m_escchar,n,len,E_MENU,m_menuchar);
  251.   
  252. --- 416,422 ----
  253.      len = 2 * count + 1;
  254.   
  255.      for (i=0;i<count;i++)
  256. !        len += (int)strlen(text[i].value) + (int)strlen(text[i].action);
  257.      
  258.      fprintf(m_termout,"%c%d,%d%c%c",m_escchar,n,len,E_MENU,m_menuchar);
  259.   
  260. ***************
  261. *** 546,553 ****
  262. --- 546,557 ----
  263.    */
  264.   
  265.   #ifndef iswhite
  266. + #ifdef atarist
  267. + #define iswhite(x)    ((x)==' ' || (x)=='\t' || (x)=='\r')
  268. + #else
  269.   #define iswhite(x)    ((x)==' ' || (x)=='\t')
  270.   #endif
  271. + #endif
  272.   
  273.   int
  274.   parse(line,fields)
  275. ***************
  276. *** 584,600 ****
  277.   /******************************************
  278.    *    stuff for restarting
  279.    */
  280.   
  281. ! _Catch()
  282.      {
  283.      ioctl(fileno(m_termin),TIOCFLUSH,0);
  284.   #ifdef atarist
  285.      _discard(m_termout);
  286.   #endif
  287.      longjmp(_env,1);
  288.      }
  289.   
  290. ! _Clean()
  291.      {
  292.   #ifdef atarist
  293.      _discard(m_termout);
  294. --- 588,611 ----
  295.   /******************************************
  296.    *    stuff for restarting
  297.    */
  298. + static void _discard(FILE*);
  299. + #ifdef __MINT__
  300. + #include <mintbind.h>
  301. + #endif
  302.   
  303. ! void _Catch()
  304.      {
  305.      ioctl(fileno(m_termin),TIOCFLUSH,0);
  306.   #ifdef atarist
  307.      _discard(m_termout);
  308.   #endif
  309. + #ifdef __MINT__
  310. +    Psigreturn();
  311. + #endif
  312.      longjmp(_env,1);
  313.      }
  314.   
  315. ! void _Clean()
  316.      {
  317.   #ifdef atarist
  318.      _discard(m_termout);
  319. ***************
  320. *** 605,611 ****
  321.      }
  322.   
  323.   #ifdef atarist
  324. ! _discard(f)
  325.      FILE *f;
  326.      {
  327.      f->_cnt = 0;
  328. --- 616,622 ----
  329.      }
  330.   
  331.   #ifdef atarist
  332. ! static void _discard(f)
  333.      FILE *f;
  334.      {
  335.      f->_cnt = 0;
  336. *** term.h    Thu Mar 21 10:46:47 1991
  337. --- ../term.h    Fri Mar 22 09:31:11 1991
  338. ***************
  339. *** 1,4 ****
  340. ! %/*                        Copyright (c) 1987 Bellcore
  341.    *                            All Rights Reserved
  342.    *       Permission is granted to copy or use this program, EXCEPT that it
  343.    *       may not be sold for profit, the copyright notice must be reproduced
  344. --- 1,4 ----
  345. ! /*                        Copyright (c) 1987 Bellcore
  346.    *                            All Rights Reserved
  347.    *       Permission is granted to copy or use this program, EXCEPT that it
  348.    *       may not be sold for profit, the copyright notice must be reproduced
  349. ***************
  350. *** 5,14 ****
  351.    *       on copies, and credit should be given to Bellcore where it is due.
  352.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  353.    */
  354. ! /*    $Header: term.h,v 4.6 88/08/18 10:17:05 sau Exp $
  355. !     $Source: /tmp/mgrsrc/lib/RCS/term.h,v $
  356.   */
  357. ! static char    h_term_[] = "$Source: /tmp/mgrsrc/lib/RCS/term.h,v $$Revision: 4.6 $";
  358.   
  359.   /* macros for writing to mgr terminal emulator */
  360.   
  361. --- 5,14 ----
  362.    *       on copies, and credit should be given to Bellcore where it is due.
  363.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  364.    */
  365. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.h,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  366. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.h,v $
  367.   */
  368. ! static char    h_term_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/term.h,v $$Revision: 1.1 $";
  369.   
  370.   /* macros for writing to mgr terminal emulator */
  371.   
  372. ***************
  373. *** 29,34 ****
  374. --- 29,116 ----
  375.   #include <sgtty.h>
  376.   #endif
  377.   
  378. + /* structure definitions */
  379. + #define MENU_SIZE(x)    ((int)(sizeof(x)/sizeof(struct menu_entry)))
  380. + struct menu_entry {
  381. +    char *value;        /* this appears in the menu */
  382. +    char *action;    /* this gets sent by mgr upon selection */
  383. +    };
  384. + struct window_data {
  385. +    int x,y;        /* origin */
  386. +    int w,h;        /* width, height */
  387. +    char tty[3];        /* name of controlling tty */
  388. +    char status;        /* activation status */
  389. +    int num;        /* window number (>0 for client) */
  390. +    int setid;        /* window set ID */
  391. +    };
  392. + struct icon {
  393. +    char *name;        /* name of icon */
  394. +    int type;        /* always 1 */
  395. +    int w;        /* bitmap width */
  396. +    int h;        /* bitmap height */
  397. +    unsigned char *data;    /* data goes here */
  398. +    };
  399. + /* protos */
  400. + #if defined(__STDC__) || defined(__cplusplus)
  401. + # define P_(s) s
  402. + #else
  403. + # define P_(s) ()
  404. + #endif
  405. + /* ckmgrterm.c */
  406. + void ckmgrterm P_((char *text));
  407. + /* term.c */
  408. + int m_setup P_((int flags));
  409. + int get_info P_((int type, char **list));
  410. + int get_windata P_((struct window_data *windatap));
  411. + int get_eachwin P_((struct window_data *windatap));
  412. + int get_eachclientwin P_((struct window_data *windatap));
  413. + int get_all P_((struct window_data *list));
  414. + int get_client P_((struct window_data *list));
  415. + int get_size P_((int *x, int *y, int *wide, int *high));
  416. + int get_mouse P_((int *x, int *y));
  417. + int get_param P_((char *host, int *xmax, int *ymax, int *border));
  418. + int get_cursor P_((int *x, int *y));
  419. + int get_colrow P_((int *cols, int *rows));
  420. + char *get_termcap P_((void));
  421. + int get_font P_((int *wide, int *high));
  422. + int m_makewindow P_((int x, int y, int wide, int high));
  423. + int is_active P_((void));
  424. + char *m_lastline P_((void));
  425. + int menu_load P_((int n, int count, struct menu_entry *text));
  426. + int m_bitload P_((int x, int y, int w, int h, char *data));
  427. + int m_ttyset P_((void));
  428. + int m_ttyreset P_((void));
  429. + int m_resetflags P_((int flags));
  430. + int m_setflags P_((int flags));
  431. + int m_bitfile P_((int bitmapid, char *iconname, int *iconwidthp, int *iconheightp));
  432. + int parse P_((char *line, char **fields));
  433. + void _Catch P_((void));
  434. + void _Clean P_((void));
  435. + /* text.c */
  436. + int text P_((char *s, int x, int y, int font, int angle, int size_x, int size_y));
  437. + /* sfont.c */
  438. + int sfont P_((int font, int ch, short *min, short *max, int *npts, short *pts));
  439. + /* sin.c */
  440. + int isin P_((int n));
  441. + int icos P_((int n));
  442. + /* scribe.c */
  443. + int scribe P_((int font, int ch, short *min, short *max, int *npts, short *pts));
  444. + #undef P_
  445.   #define TTYMAX        10    /* stack size for ttyset() */
  446.   
  447.   #define M_FLUSH        0x1    /* autoflush output after each write */
  448. ***************
  449. *** 181,199 ****
  450.    
  451.   #define m_othersave(id,sub,name) \
  452.       (fprintf(m_termout,"%c%d,%d,%d%c%s",\
  453. !     m_escchar,id,sub,(int)strlen(name),E_SMAP,name)_m_flsh)
  454.    
  455.   #define m_windowsave(name) \
  456.       (fprintf(m_termout,"%c%d%c%s",\
  457. !     m_escchar,(int)strlen(name),E_SMAP,name)_m_flsh)
  458.    
  459.   #define m_bitsave(from,name) \
  460.       (fprintf(m_termout,"%c%d,%d%c%s",\
  461. !     m_escchar,from,(int)strlen(name),E_SMAP,name)_m_flsh)
  462.    
  463.   #define m_bitfromfile(to,name) \
  464.       (fprintf(m_termout,"%c%d,%d%c%s",\
  465. !     m_escchar,to,(int)strlen(name),E_GMAP,name)_m_flsh)
  466.    
  467.   #define m_highlight(x,y,w,h) \
  468.       (fprintf(m_termout,"%c%d,%d,%d,%d%c",\
  469. --- 263,281 ----
  470.    
  471.   #define m_othersave(id,sub,name) \
  472.       (fprintf(m_termout,"%c%d,%d,%d%c%s",\
  473. !     m_escchar,id,sub,(int)(strlen(name)),E_SMAP,name)_m_flsh)
  474.    
  475.   #define m_windowsave(name) \
  476.       (fprintf(m_termout,"%c%d%c%s",\
  477. !     m_escchar,(int)(strlen(name)),E_SMAP,name)_m_flsh)
  478.    
  479.   #define m_bitsave(from,name) \
  480.       (fprintf(m_termout,"%c%d,%d%c%s",\
  481. !     m_escchar,from,(int)(strlen(name)),E_SMAP,name)_m_flsh)
  482.    
  483.   #define m_bitfromfile(to,name) \
  484.       (fprintf(m_termout,"%c%d,%d%c%s",\
  485. !     m_escchar,to,(int)(strlen(name)),E_GMAP,name)_m_flsh)
  486.    
  487.   #define m_highlight(x,y,w,h) \
  488.       (fprintf(m_termout,"%c%d,%d,%d,%d%c",\
  489. ***************
  490. *** 201,207 ****
  491.    
  492.   #define m_stringto(to,x,y,text) \
  493.       (fprintf(m_termout,"%c%d,%d,%d,%d%c%s",\
  494. !     m_escchar,to,x,y,(int)strlen(text),E_STRING,text)_m_flsh)
  495.   
  496.   /* other graphic functions */
  497.   
  498. --- 283,289 ----
  499.    
  500.   #define m_stringto(to,x,y,text) \
  501.       (fprintf(m_termout,"%c%d,%d,%d,%d%c%s",\
  502. !     m_escchar,to,x,y,(int)(strlen(text)),E_STRING,text)_m_flsh)
  503.   
  504.   /* other graphic functions */
  505.   
  506. ***************
  507. *** 265,271 ****
  508.   
  509.   #define m_loadfont(n,name) \
  510.       (fprintf(m_termout,"%c%d,%d%c%s", \
  511. !     m_escchar,n,(int)strlen(name),E_FONT,name)_m_flsh)
  512.   
  513.   #define m_size(cols,rows) \
  514.       (fprintf(m_termout,"%c%d,%d%c",m_escchar,cols,rows,E_SIZE)_m_flsh)
  515. --- 347,353 ----
  516.   
  517.   #define m_loadfont(n,name) \
  518.       (fprintf(m_termout,"%c%d,%d%c%s", \
  519. !     m_escchar,n,(int)(strlen(name)),E_FONT,name)_m_flsh)
  520.   
  521.   #define m_size(cols,rows) \
  522.       (fprintf(m_termout,"%c%d,%d%c",m_escchar,cols,rows,E_SIZE)_m_flsh)
  523. ***************
  524. *** 300,306 ****
  525.   
  526.   #define m_setevent(event,x) \
  527.       (fprintf(m_termout,"%c%d,%d%c%s", \
  528. !     m_escchar,_mapevent(event),(int)strlen(x),E_EVENT,x)_m_flsh)
  529.   
  530.   #define m_clearevent(event) \
  531.       (fprintf(m_termout,"%c%d%c", \
  532. --- 382,388 ----
  533.   
  534.   #define m_setevent(event,x) \
  535.       (fprintf(m_termout,"%c%d,%d%c%s", \
  536. !     m_escchar,_mapevent(event),(int)(strlen(x)),E_EVENT,x)_m_flsh)
  537.   
  538.   #define m_clearevent(event) \
  539.       (fprintf(m_termout,"%c%d%c", \
  540. ***************
  541. *** 310,328 ****
  542.   
  543.   #define m_sendme(str) \
  544.       (fprintf(m_termout,"%c%d%c%s", \
  545. !     m_escchar,(int)strlen(str),E_GIMME,str)_m_flsh)
  546.   
  547.   #define m_sendto(pid,str) \
  548.       (fprintf(m_termout,"%c%d,%d%c%s", \
  549. !     m_escchar,pid,(int)strlen(str),E_SEND,str)_m_flsh)
  550.   
  551.   #define m_broadcast(str) \
  552.       (fprintf(m_termout,"%c%d%c%s", \
  553. !     m_escchar,(int)strlen(str),E_SEND,str)_m_flsh)
  554.   
  555.   #define m_snarf(str) \
  556.       (fprintf(m_termout,"%c%d%c%s", \
  557. !     m_escchar,(int)strlen(str),E_SNARF,str)_m_flsh)
  558.   
  559.   #define m_put() \
  560.       (fprintf(m_termout,"%c%c", \
  561. --- 392,410 ----
  562.   
  563.   #define m_sendme(str) \
  564.       (fprintf(m_termout,"%c%d%c%s", \
  565. !     m_escchar,(int)(strlen(str)),E_GIMME,str)_m_flsh)
  566.   
  567.   #define m_sendto(pid,str) \
  568.       (fprintf(m_termout,"%c%d,%d%c%s", \
  569. !     m_escchar,pid,(int)(strlen(str)),E_SEND,str)_m_flsh)
  570.   
  571.   #define m_broadcast(str) \
  572.       (fprintf(m_termout,"%c%d%c%s", \
  573. !     m_escchar,(int)(strlen(str)),E_SEND,str)_m_flsh)
  574.   
  575.   #define m_snarf(str) \
  576.       (fprintf(m_termout,"%c%d%c%s", \
  577. !     m_escchar,(int)(strlen(str)),E_SNARF,str)_m_flsh)
  578.   
  579.   #define m_put() \
  580.       (fprintf(m_termout,"%c%c", \
  581. ***************
  582. *** 422,428 ****
  583.       (fprintf(m_termout,"%c-%d%c",m_escchar,999,E_MENU)_m_flsh)
  584.   
  585.   #define m_loadmenu(n,str) \
  586. !     (fprintf(m_termout,"%c%d,%d%c%s",m_escchar,n,(int)strlen(str),E_MENU,str)_m_flsh)
  587.   
  588.   #define m_clearmenu(n) \
  589.       (fprintf(m_termout,"%c%d,0%c",m_escchar,n,E_MENU)_m_flsh)
  590. --- 504,510 ----
  591.       (fprintf(m_termout,"%c-%d%c",m_escchar,999,E_MENU)_m_flsh)
  592.   
  593.   #define m_loadmenu(n,str) \
  594. !     (fprintf(m_termout,"%c%d,%d%c%s",m_escchar,n,(int)(strlen(str)),E_MENU,str)_m_flsh)
  595.   
  596.   #define m_clearmenu(n) \
  597.       (fprintf(m_termout,"%c%d,0%c",m_escchar,n,E_MENU)_m_flsh)
  598. ***************
  599. *** 523,556 ****
  600.   extern char m_escchar;        /* \033, change only for debugging */
  601.   extern char m_menuchar;        /* menu field seperator char (\005) */
  602.   extern char m_linebuf[MAXLINE];
  603. - extern int get_info(), get_size(), parse(), get_font(), is_active(), menu_load();
  604. - extern char *m_lastline(), *get_termcap();
  605. - /* structure definitions */
  606. - #define MENU_SIZE(x)    ((int)(sizeof(x)/sizeof(struct menu_entry)))
  607. - struct menu_entry {
  608. -    char *value;        /* this appears in the menu */
  609. -    char *action;    /* this gets sent by mgr upon selection */
  610. -    };
  611. - struct window_data {
  612. -    int x,y;        /* origin */
  613. -    int w,h;        /* width, height */
  614. -    char tty[3];        /* name of controlling tty */
  615. -    char status;        /* activation status */
  616. -    int num;        /* window number (>0 for client) */
  617. -    int setid;        /* window set ID */
  618. -    };
  619. - struct icon {
  620. -    char *name;        /* name of icon */
  621. -    int type;        /* always 1 */
  622. -    int w;        /* bitmap width */
  623. -    int h;        /* bitmap height */
  624. -    unsigned char *data;    /* data goes here */
  625. -    };
  626.   
  627.   #endif _TERM_INCL
  628. --- 605,609 ----
  629. *** text.c    Thu Mar 21 10:46:47 1991
  630. --- ../text.c    Fri Mar 22 09:29:20 1991
  631. ***************
  632. *** 5,14 ****
  633.    *       on copies, and credit should be given to Bellcore where it is due.
  634.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  635.    */
  636. ! /*    $Header: text.c,v 4.1 88/06/21 13:41:05 bianchi Exp $
  637. !     $Source: /tmp/mgrsrc/lib/RCS/text.c,v $
  638.   */
  639. ! static char    RCSid_[] = "$Source: /tmp/mgrsrc/lib/RCS/text.c,v $$Revision: 4.1 $";
  640.   
  641.   #include "term.h"
  642.   
  643. --- 5,14 ----
  644.    *       on copies, and credit should be given to Bellcore where it is due.
  645.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  646.    */
  647. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/text.c,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  648. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/text.c,v $
  649.   */
  650. ! static char    RCSid_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/text.c,v $$Revision: 1.1 $";
  651.   
  652.   #include "term.h"
  653.   
  654. *** window.h    Thu Mar 21 10:46:47 1991
  655. --- ../window.h    Fri Mar 22 09:29:20 1991
  656. ***************
  657. *** 5,14 ****
  658.    *       on copies, and credit should be given to Bellcore where it is due.
  659.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  660.    */
  661. ! /*    $Header: window.h,v 4.2 88/08/12 07:41:26 sau Exp $
  662. !     $Source: /tmp/mgrsrc/lib/RCS/window.h,v $
  663.   */
  664. ! static char    h_window_[] = "$Source: /tmp/mgrsrc/lib/RCS/window.h,v $$Revision: 4.2 $";
  665.   
  666.   /* defines for terminal emulator */
  667.   
  668. --- 5,14 ----
  669.    *       on copies, and credit should be given to Bellcore where it is due.
  670.    *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  671.    */
  672. ! /*    $Header: /home/bammi/atari/mgr/sparcmgr/lib/RCS/window.h,v 1.1 1991/03/22 14:28:56 bammi Exp bammi $
  673. !     $Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/window.h,v $
  674.   */
  675. ! static char    h_window_[] = "$Source: /home/bammi/atari/mgr/sparcmgr/lib/RCS/window.h,v $$Revision: 1.1 $";
  676.   
  677.   /* defines for terminal emulator */
  678.   
  679.